package com.example.haojiutao.constant;



/**
 * @Description: 缓存key常量类
 * @Author: cheng_jianzhen
 * @CreateTime: 2024/2/5 15:42
 */


public class CacheKeyConstant {
    public static final String VERIFY_CODE_KEY = "verify_code_-";
    public static final String SMS_CODE_REGISTER_KEY = "sms_code_register-";
    private static final String TOKEN_KEY ="token_key" ;

    //获取图片验证码缓存key
    public static String getVerifyCodeKey(String uuid){
        return VERIFY_CODE_KEY + uuid;
    }

    //获取注册用短信验证码缓存key
    public static String getSmsCodeRegisterKey(String uuid){
        return SMS_CODE_REGISTER_KEY + uuid;
    }

    public static String getTokenKey(String uuid) { return TOKEN_KEY + uuid;}
}
